<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  <title>奖品展示</title>
  <link rel="stylesheet" href="/mobile/css/index.css" />
  <script src="/mobile/js/vue.js"></script>
  <script src="/mobile/js/vue-infinite-scroll.js"></script>
  <script src="/mobile/js/axios.min.js"></script>
  <script src="/mobile/js/vant.min.js"></script>
  <script src="/mobile/js/crypto-js.js"></script>
  <script src="/mobile/js/aes.js"></script>
  <script src="/mobile/js/common.js"></script>
  <style>
    * {
    margin: 0;
    padding: 0;
    user-select: none;
  }
  #app {
    padding: 11.466vw 5.33vw 4.26vw;
  }

  .infinite-list-wrapper {
    overflow-y: auto;
    height: 100vh;
    position: relative;
  }

  .box {
    width: 33.33%;
    overflow: hidden;
    min-height: 80px;
    padding: 2px 5px;
    text-align: center;
  }

  .img-box {
    position: relative;
    font-size: 0;
    width: 28vw;
    height: 28vw;
    background: url(/mobile/img/crystal-gift-box.png) no-repeat center center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rate {
    padding: 2px 4px;
    font-size: 8px;
    color: #1DF0FF;
    background: rgba(84, 16, 168, .7);
    border-radius: 10px;
    position: absolute;
    right: 1.6vw;
    top: 1.86vw;
    font-weight: bold;
  }

  .prize-img {
    width: 70%;
  }

  .prize-name {
    font-size: 12px;
    color: #fff;
  }

  .shell-name {
    font-size: 10px;
    vertical-align: middle;
    color: #fff;
  }
  </style>
</head>

<body>
  <div id="app">
    <van-row>
      <van-col span="8" v-for="(item, index) in list" :key="index" class="box">
        <div class="img-box">
          <div class="rate">{{item.probability}}</div>
          <img class="prize-img" :src="item.url" alt="">
        </div>
        <div class="prize-name">{{item.name}}</div>
        <div class="shell-name">{{item.awardCoin}}贝壳</div>
      </van-col>
    </van-row>
  </div>
  <script>
  new Vue({
    el: '#app',
    data: {
      list: [{
        name: '爱心简餐',
        probability: '30%',
        url: 'https://oss.zgbbyy.com/gift/0593f82967574ca9abe9d6ad2b9886d6.png',
        awardCoin: 50 
      },{
        name: '比心',
        probability: '30%',
        url: 'https://oss.zgbbyy.com/gift/93e24efbeb594dcf980283381614cbd6.png',
        awardCoin: 100
      },{
        name: '魔力爱心',
        probability: '20%',
        url: 'https://oss.zgbbyy.com/gift/4ed3c2a93f1a47cf99ac97485f6215b1.png',
        awardCoin: 200
      },{
        name: '告白情书',
        probability: '13%',
        url: 'https://oss.zgbbyy.com/gift/0756702e113a4199b9ecec1fb961cdab.png',
        awardCoin: 520
      },{
        name: '纸伞情',
        probability: '3%',
        url: 'https://oss.zgbbyy.com/gift/0d3db262a327447fbf68dec44e29187d.png',
        awardCoin: 1000
      },{
        name: '夏夜小呱',
        probability: '2%',
        url: 'https://oss.zgbbyy.com/gift/73aa5d95adb64d64b50ed1dde53ca4a1.png',
        awardCoin: 2000
      },{
        name: '钢琴恋曲',
        probability: '1%',
        url: 'https://oss.zgbbyy.com/gift/ffbe4f953ba54d2a88674d42b5fc5e37.png',
        awardCoin: 5000
      },{
        name: '人鱼恋曲',
        probability: '0.6%',
        url: 'https://oss.zgbbyy.com/gift/70690b52e22b4091a8a6a2479c746e9a.png',
        awardCoin: 18880
      },{
        name: '星河爱恋',
        probability: '0.4%',
        url: 'https://oss.zgbbyy.com/gift/343d4a85bb3a4460a79bb5348f417c9d.png',
        awardCoin: 52000
      },],
    },
    created() {

    },
    methods: {

    }
  })
  </script>
</body>

</html>